$f: 19.2;

.home {
  position: relative;
  width: 100%;

  .banner {
    position: relative;

    img {
      width: 100%;
      display: block;
      object-fit: cover;
    }

    .text {
      position: absolute;
      left: 190/$f+vw;
      top: 50%;
      transform: translateY(-50%);

      .p1 {
        background: linear-gradient(180deg, rgba(56, 110, 181, 0.50) 35.29%, rgba(255, 255, 255, 0.00) 84.31%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        font-size: 40/$f+vw;
        text-transform: uppercase;
        font-family: 'PingFang';
        font-weight: 600;
      }

      .p2 {
        color: #386EB5;
        font-size: 48/$f+vw;
        font-weight: 700;
        margin-top: -1vw;
      }
    }

    .types {
      border-top: 3px solid rgba(58, 133, 192, 0.10);
      background: rgba(0, 0, 0, 0.30);
      backdrop-filter: blur(5px);
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;

      .items {
        width: 65%;
        margin: 0 auto;
        display: flex;
        justify-content: space-between;

        .item {
          width: 20%;
          position: relative;
          cursor: pointer;

          &::before {
            content: '';
            display: block;
            position: absolute;
            left: 50%;
            transform: translateX(-50%);
            top: -2px;
            width: 0;
            transition: all 600ms;
            height: 4/$f+vw;
            background: #386EB5;
          }

          .p1 {
            color: #FFF;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 22/$f+vw 0;
            font-size: 20/$f+vw;
            font-weight: 700;
            transition: all 600ms;

            svg {
              display: block;
              width: 24/$f+vw;

              path {
                transition: all 600ms;
              }
            }
          }

          &:hover {
            &::before {
              width: 100%;
            }

            .p1 {
              color: #386EB5;

              svg {
                path {
                  stroke: #386EB5;
                }
              }
            }
          }
        }

        .active {
          &::before {
            width: 100%;
          }

          .p1 {
            color: #386EB5;

            svg {
              path {
                stroke: #386EB5;
              }
            }
          }
        }
      }
    }
  }


  .main {
    margin: 80/$f+vw 190/$f+vw;

    .section1 {
      .t {
        color: #000;
        font-size: 40/$f+vw;
        font-weight: 600;
        text-align: center;
      }
      form{
        width: 1208/$f+vw;
        margin: 81/$f+vw auto 0;
        *{
          box-sizing: border-box;
        }
        .flex{
          display: flex;
          justify-content: space-between;
          margin: 0 0 27/$f+vw;
          &.last{
            margin: 0;
          }
          .item{
            width: 513/$f+vw;
            &.all{
              width: 100%;
            }
            p{
              color: #666;
              font-size: 20/$f+vw;
              font-style: normal;
              font-weight: 400;
              b{
                color: #F00;
                font-size: 16/$f+vw;
                font-style: normal;
                font-weight: 400;
                position: relative;
                top: -2/$f+vw;
              }
            }
            input{
              margin: 10/$f+vw 0 0 0;
              width: 100%;
              height: 60/$f+vw;
              padding: 19.5/$f+vw 34/$f+vw 19.5/$f+vw 16/$f+vw;
              border: none;
              border-radius: 6/$f+vw;
              background: #FAFAFA;
              font-size: 20/$f+vw;
              font-style: normal;
              font-weight: 400;
              &::placeholder{
                color: #999;
              }
            }
            textarea{
              height: 161/$f+vw;
              width: 100%;
              padding: 19px 0 0 15/$f+vw;
              font-size: 20/$f+vw;
              font-style: normal;
              font-weight: 400;
              margin: 10/$f+vw 0 0 0;
              border: none;
              border-radius: 6/$f+vw;
              background: #FAFAFA;
              resize: none;
              &::placeholder{
                color: #999;
              }
            }
          }
        }
        .flex1{
          .item1{
            width: 410/$f+vw;
          }
          .item3{
            width: 245/$f+vw;
          }
        }
        .flex2{
          .item1{
            width: 245/$f+vw;
          }
          .item2{
            width: 410/$f+vw;
          }
        }
        .other{
          margin: 41/$f+vw 0 0 0;
          display: flex;
          align-items: center;
          justify-content: space-between;
          .l{
            display: flex;
            input{
              width: 366.55/$f+vw;
              height: 60/$f+vw;
              border-radius: 6/$f+vw;
              background: #FAFAFA;
              padding: 0 0 0  16/$f+vw;
              font-size: 20/$f+vw;
              font-style: normal;
              font-weight: 400;
              border: none;
              margin: 0 24/$f+vw 0 0;
            }
            canvas{
              width: 100/$f+vw;
              height: 60/$f+vw;
            }
          }
          .btn{
            cursor: pointer;
            width: 179/$f+vw;
            height: 55/$f+vw;
            background: #386EB5;
            display: flex;
            align-items: center;
            justify-content: center;
            border: none;
            color: #FFF;
            font-size: 24/$f+vw;
            font-style: normal;
            font-weight: 400;
          }
        }
        .agree{
          display: flex;
          margin: 30/$f+vw 0 0 0;
          cursor: pointer;
          width: fit-content;
          .border{
            width: 12/$f+vw;
            height: 12/$f+vw;
            border-radius: 2/$f+vw;
            border: 1px solid #D9D9D9;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 3/$f+vw 6/$f+vw 0 0;
            transition: .3s;

            svg{
              max-width: 90%;
              max-height: 90%;
              path{
                fill: #fff;
              }
            }
          }
          p{
            color: #999;
            font-size: 14/$f+vw;
            font-style: normal;
            font-weight: 400;
          }
          a{
            color: #0E50C8;
            font-size: 14/$f+vw;
            font-style: normal;
            font-weight: 400;
            text-decoration: underline;
          }
          &.on{
            .border{
              border: 1px solid transparent;
              background: #0E50C8;
            }
          }
        }
      }
    }

  }



  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .banner{
      img{
        height: 150px;
      }
      .text{
        left: 5%;
        top:50%;
        .p1{
          font-size: 20px;
        }
        .p2{
          font-size: 20px;
          margin-top: -10px;
        }
      }
      .types{
        position: static;
        .items{
          width: 100%;
          .item{
            .p1{
              font-size: 12px;
              padding: 10px 0;
            }
          }
        }
      }
    }
    .main{
      margin: 30px 5%;
      .section1{
        .t{
          font-size: 20px;
        }
        form{
          width: 100%;
          margin: 35px 0 0 0;
          .flex{
            margin: 0 0 20px;
            flex-direction: column;
            .item{
              width: 100% !important;
              margin: 0 0 20px;
              &:last-child{
                margin: 0;
              }
              p{
                font-size: 14px;
                b{
                  font-size: 14px;
                  top: 0;
                }
              }
              input{
                margin: 10px 0 0 0;
                padding: 0 5%;
                font-size: 14px;
                height: 45px;
              }
              textarea{
                padding: 5% 0 0 5%;
                font-size: 14px;
                height: 150px;
                margin: 10px 0 0 0;
              }
            }
          }
          .other{
            flex-direction: column;
            align-items: unset;
            .l{
              input{
                padding: 0 5%;
                width: 70%;
                font-size: 14px;
                height: 45px;
              }
              canvas{
                width: 100px;
                height: 45px;
              }
            }
            .btn{
              width: 132px;
              height: 40px;
              font-size: 14px;
              margin: 15px 0 0 0;
            }
          }

          .agree{
            margin: 25px 0 0 0;
            align-items: center;
            .border{
              width: 14px;
              height: 14px;
              margin: 0 5px 0 0;
            }
            p,a{
              font-size: 15px;
            }
          }
        }
      }
    }
  }
}